package com.jbm.core.common;

import com.jbm.core.pb.PBIAcross;
import org.apache.mina.core.session.IoSession;

/**
 * Created by root on 17-5-24.
 */
public interface IExCode
{
	void cancelExcode();
	void needExcode();
	boolean hasExcode();
	void setIAcross(Object iac);
	Object getIAcross();

	Object StartDecode(Object in, IoSessionShell ios) throws Exception;
	boolean Decode(Object in) throws Exception;
	Object PreEncode(Object obj) throws Exception;
	boolean Encode(Object out, Object obj, PBIAcross.IAcross org) throws Exception;
}
